package com.txts.road.admin.vehicleSys.service.impl;

import com.txts.road.admin.vehicleSys.domain.serviceVehicle;
import com.txts.road.admin.vehicleSys.mapper.serviceVehicleMapper;
import com.txts.road.admin.vehicleSys.service.IserviceVehicleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务车辆Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-19
 */
@Service
public class serviceVehicleServiceImpl implements IserviceVehicleService
{
    @Resource
    private serviceVehicleMapper serviceVehicleMapper;

    /**
     * 查询服务车辆
     *
     * @param id 服务车辆主键
     * @return 服务车辆
     */
    @Override
    public serviceVehicle selectserviceVehicleById(Long id)
    {
        return serviceVehicleMapper.selectserviceVehicleById(id);
    }

    /**
     * 查询服务车辆列表
     *
     * @param serviceVehicle 服务车辆
     * @return 服务车辆
     */
    @Override
    public List<serviceVehicle> selectserviceVehicleList(serviceVehicle serviceVehicle)
    {
        return serviceVehicleMapper.selectserviceVehicleList(serviceVehicle);
    }

    /**
     * 新增服务车辆
     *
     * @param serviceVehicle 服务车辆
     * @return 结果
     */
    @Override
    public int insertserviceVehicle(serviceVehicle serviceVehicle)
    {
        return serviceVehicleMapper.insertserviceVehicle(serviceVehicle);
    }

    /**
     * 修改服务车辆
     *
     * @param serviceVehicle 服务车辆
     * @return 结果
     */
    @Override
    public int updateserviceVehicle(serviceVehicle serviceVehicle)
    {
        return serviceVehicleMapper.updateserviceVehicle(serviceVehicle);
    }

    /**
     * 批量删除服务车辆
     *
     * @param ids 需要删除的服务车辆主键
     * @return 结果
     */
    @Override
    public int deleteserviceVehicleByIds(Long[] ids)
    {
        return serviceVehicleMapper.deleteserviceVehicleByIds(ids);
    }

    /**
     * 删除服务车辆信息
     *
     * @param id 服务车辆主键
     * @return 结果
     */
    @Override
    public int deleteserviceVehicleById(Long id)
    {
        return serviceVehicleMapper.deleteserviceVehicleById(id);
    }



}
